import { createRouter, createWebHistory } from 'vue-router'
import UserManagement from '@/components/UserManagement.vue'
import HomePage from '@/components/Home.vue'

export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'Home',
      component: HomePage
    },
    {
      path: '/login',
      name: 'Login',
      component: UserManagement
    },
    {
      path: '/:pathMatch(.*)*',
      redirect: '/login'
    }
  ]
})